

<?php
	
	/*ob_clean();*/

		$data=array();
		$pid=(!empty($_GET['id']))?$_GET['id']:0;
		
		$sql="select * from `cate` where `pid`='$pid'";
		$result=mysqli_query($GLOBALS['link'],$sql);
		
		while ($arr=mysqli_fetch_assoc($result)) {
			$data[]=$arr;
		}

		 if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {

	      	
			echo json_encode($data);die;

        }
		/*函数分装*/
	/*	$a=cate();*/

 
   
  		include( VIEW_PATH.$admin.'layst.html');


?>
